[XEN] Only print progress dots when scrubbing actual memory.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 18 Dec 2006 14:38:38 +0000 (14:38 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 18 Dec 2006 14:38:38 +0000 (14:38 +0000)
Signed-off-by: Jes Sorensen <jes@sgi.com>
xen/common/page_alloc.c

index 89cc140cf16c8cbf6bd5f2440043db598d7d7ba3..4a7527859bcb561f78faaeaa846b8d1a2db08f1a 100644 (file)
@@ -490,16 +490,16 @@ void scrub_heap_pages(void)
 
     for ( mfn = first_valid_mfn; mfn < max_page; mfn++ )
     {
-        /* Every 100MB, print a progress dot. */
-        if ( (mfn % ((100*1024*1024)/PAGE_SIZE)) == 0 )
-            printk(".");
-
         process_pending_timers();
 
         /* Quick lock-free check. */
         if ( allocated_in_map(mfn) )
             continue;
 
+        /* Every 100MB, print a progress dot. */
+        if ( (mfn % ((100*1024*1024)/PAGE_SIZE)) == 0 )
+            printk(".");
+
         spin_lock_irq(&heap_lock);
 
         /* Re-check page status with lock held. */